<template>
  <!-- 支付 -->
  <Top-Page class="pay-box">
    <web-view v-if="URL" :src="URL"></web-view>
  </Top-Page>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const URL = ref('');

onLoad((params) => {
  URL.value = JSON.parse(decodeURIComponent(params.url));
});
</script>

<style lang="scss" scoped>
.pay-box {
  width: 750rpx;
  height: 100vh;
}
</style>
